﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Winz.FoeBot
{
    
    public partial class DebugForm : Form
    {
        Form1 mainForm;

        public DebugForm(Form1 main)
        {
            InitializeComponent();
            mainForm = main;
        }


        #region Test methods



        private void btnPolish_Click(object sender, EventArgs e)
        {
            mainForm.bot.ClickPolish();
        }

        private void btnClickBuilding_Click(object sender, EventArgs e)
        {
            mainForm.bot.ClickMap(int.Parse(txtX.Text), int.Parse(txtY.Text));
        }

        private void mouseMouse_Click(object sender, EventArgs e)
        {

            mainForm.webBrowser.LeftClick(int.Parse(txtX.Text), int.Parse(txtY.Text));

        }

        private void btnClickCoords_Click(object sender, EventArgs e)
        {
            mainForm.webBrowser.LeftClick(int.Parse(txtX.Text), int.Parse(txtY.Text));
        }


        private void btnPrevious_Click(object sender, EventArgs e)
        {
            mainForm.bot.socialBarMotivator.ClickPrevious();
        }

        private void btnNext_Click(object sender, EventArgs e)
        {
            mainForm.bot.socialBarMotivator.ClickNext();
        }


        private void button7_Click(object sender, EventArgs e)
        {
            //            Log("isZoomedIn {0} isZoomedOut {1}", webBrowser.FoeIsZoomedIn(), webBrowser.FoeIsZoomedOut());
            mainForm.webBrowser.FoeZoomIn();
        }

        #endregion

        private void button10_Click(object sender, EventArgs e)
        {
        
        }

        private void button11_Click(object sender, EventArgs e)
        {
            
        }

        private void button12_Click(object sender, EventArgs e)
        {
            mainForm.bot.productionBot.Start();
        }

        private void button13_Click(object sender, EventArgs e)
        {
            mainForm.bot.productionBot.Stop();
        }
    }
}
